package GoFPatterns.kuang.simple.service.impl;

import GoFPatterns.kuang.simple.dao.CarDao;
import GoFPatterns.kuang.simple.dao.impl.CarDaoImpl;
import GoFPatterns.kuang.simple.factory.CarFactory;
import GoFPatterns.kuang.simple.service.CarService;

public class CarServiceImpl implements CarService {
    private CarDao dao = new CarDaoImpl();
    @Override
    public void buy(String car) {
        CarFactory factory = new CarFactory();
        factory.Car(car).getCar();
    }
}
